// 全局 Mixins
// import { globalMixins } from 'src/mixins'

// 基础类

// 视图类
import Panel from './view/layout/Panel'
import ScrollView from './view/layout/scroll-view'
import XRow from './view/layout/XRow'
import XCol from './view/layout/XCol'
import Spinner from './view/loading/Spinner'
import Chart from './chart/index'
import Gauge from './chart/Gauge'
import Pie from './chart/Pie'
import Bar from './chart/Bar'
import Scatter from './chart/Scatter'
import Radar from './chart/Radar'
import TextBox from './chart/TextBox'
import BrokenLine from './chart/BrokenLine'
import BrokenLine0 from './chart/BrokenLine0'
import Modal from './view/layout/modal'
import BottonGroup from './view/other/botton-group'
import spiner from './chart/mark'

// 表单类

// 导航类

const components = {
  BottonGroup,
  Modal,
  Panel,
  ScrollView,
  XRow,
  XCol,
  Spinner,
  Chart,
  Gauge,
  Pie,
  Bar,
  Scatter,
  Radar,
  TextBox,
  BrokenLine,
  BrokenLine0,
  spiner
}

const install = function (Vue, opts = {}) {
  if (install.installed) return

  // 注册全局方法和变量
  // Vue.mixin(globalMixins)

  // 注册全局指令

  // 注册全局过滤器

  // 注册全局组件
  for (let name in components) {
    Vue.component(name, components[name])
  }
}

export default {
  install
}
